package br.upe.dsc.caeto.core;

import java.util.Iterator;

public interface IRegister<E> extends Iterable<E> {
		public void add(E element) throws InvalidElementException;
		public void remove(E element) throws ElementNotFoundException;
		public void update(E element) throws ElementNotFoundException,
			InvalidElementException;
		public E search(String name) throws ElementNotFoundException;
		public boolean isElement(String name);
		public void empty();
		public Iterator<E> iterator();
		public Iterable<E> getElements();
}